#pragma once

#include "OnDemandServerMediaSubsession.hh"

class IPCameraMPEG4ESServerMediaSubsession : public OnDemandServerMediaSubsession
{
public:
	IPCameraMPEG4ESServerMediaSubsession(UsageEnvironment& env, Boolean reuseFirstSource);
public:
	~IPCameraMPEG4ESServerMediaSubsession(void);

	//static IPCameraJPEGServerMediaSubsession* createNew(UsageEnvironment& env, Boolean reuseFirstSource);
	FramedSource* createNewStreamSource(unsigned /*clientSessionId*/, unsigned& estBitrate);
	RTPSink* createNewRTPSink(Groupsock* rtpGroupsock,
		unsigned char rtpPayloadTypeIfDynamic,
		FramedSource* /*inputSource*/);

	int		int_stream_id;
	void*	ptr_frame_buffer;
};
